require.config({
	paths:{
		'jquery':'libs/jquery-1.7.2.min',
		'jquery-ui':'libs/jquery-ui-1.8.9.min'
	}
});

require(['order!jquery', 'order!jquery-ui', 'order!toolbox', 'document.min', 'application.min'], function($, ui, toolbox, doc, app){
	$(document.body).height($(window).height());
	$(window).resize(function(){$(document.body).height($(window).height());})
	
	$(document.head).append('<link rel="stylesheet" type="text/css" href="/css/jquery/jquery-ui-1.8.9.css" />');

	$.ajaxSetup({
		beforeSend:function(){
			$("#throbber").animate({top:0})
		},
		complete:function(){
			$("#throbber").animate({top:"-100%"})
		}
	});
});